Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

Dwayne Barsotta

@Dwayne Barsotta
About
Posts
12
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ASP.NET MVC dependency injection
    D Dwayne Barsotta

    I'm reading a book and the author is discussing DI using Ninject. Now time/work constraint aren't allowing me to keep reading yet. Here is my question. I read that, for using 'deleting' user accounts in an individual login method. Can I use DI to start the context object and pass it when need.

    ASP.NET asp-net csharp architecture question learning

  • Building custom controls from common wpf controls
    D Dwayne Barsotta

    So I'm learning C# WPF coming from Java. Those who know Java, know it can get interesting creating complicated widows applications as it's all done in Java code (I've never seen it done like wpf work xaml). I'm not sure if this is something I want to take yet, but it is a question in the back of my mind. Our company IT guy says you can make a custom dll of ui elements in xaml and code, then compile as a dll. I asked because I want sure if you could only write dlls with C# code and not xaml, he did admit in the several years in C C# he's never actually done this. But, is it possible to write the dll, using common already available controls and maybe extending the classes idk yet. But using common wpf controls changing the view of those controls. For example, say I wanted to change the look of the openfiledialog but keep all the functionality (maybe add to it) is there a way to capture the functionality, and build a GUI for it?

    C# csharp wpf question java design

  • Wpf frameworks or styles
    D Dwayne Barsotta

    Are there open source styles our frameworks that pretty much changes the entire look of elements? I'd like to make applications that don't look exactly like the typical windows window? With out me having to remake common controls. I'm also about to post a question about building UI elements.

    C# wpf question csharp design

  • C#, process, TPL tasks, following a process
    D Dwayne Barsotta

    Not really, my app actually starts a 3rd party software. Once the 3rd party is running I want my app to be able to "watch" the 3rd party for which one was in focus. I was "hoping" and event would be thrown in Windows when a widow went in focus, but it doesn't look so. What I've done so far (have not had time to do much) was to create two projects in one solution, the first one being a simple command line app that just calls the GUI. Now, since windows is not using the desktop shortcut icon, I can change the app icon and it is reflected on the team bar. My plan for following windows is, on the open button event, the app calls the 3rd party program (actually a link to a server), starts a timer, on the tick event, loads all the precesses into a list and loops through list search for the process name to show up, once it finds it, adds the ID to a list and stops the timer, starts an async task that gets the ID number of the active window, if the active window is in the process list, displays the correct icon.

    C# help csharp regex question discussion

  • C#, process, TPL tasks, following a process
    D Dwayne Barsotta

    I'm starting to plan out a project and I need some help with ideas. Situation: my company uses a software managed by a third party company. I do not know exactly how this works but the link to this program looks like "113.444.767.123/bin/some file". This is started though iexplorer then switches over from the iexplorer process to a different process (I have the name). We recently had then create a test company for training purposes. I can make two separate desktop icons easy enough. But once the program is running, if both the training and real companies are running at the same time, it is hard to determine the difference. I want to change the taskbat icon, and pop a message balloon when the user switches between the two. First problem, windows will use the desktop icon before the app icon, so I'm going to create a bootloader app that is launched from the desktop, it will open my real app and kill itself. Now I will have access to change the taskbar icon through code. Second problem, I can't just call the process the company program and follow the returned processId because the original iexplorer ID calls the other program, thus changing ID's. My thoughts: when I start the process from my program I start a loop the constantly calls getProcesses and loops through each one until the actual program process name is found. Once found I'll have the ID off the correct process and can match up icons based on that. Third problem monitoring what process is active to change the icons. My thoughts were to use TPL tasks, start a new async task that runs a loop to get the ForgroundWindowGetID and compare it to the list of IDs for the program I'm tracking. This is were in a little murky, can I send the ID back to my main program to handle the icons and balloons while still keeping the async task running, or do I need to stop the async task when the ID changes, then restart the task?

    C# help csharp regex question discussion

  • Passing Data From a window to the mainview(shellViewModel) using EventAggregator - WPF Caliburn.Micro
    D Dwayne Barsotta

    In a way I do agree with you, however, unless you are the top dog in a situation, you must follow others concepts. Here I have 2 issues, one I am trying to learn this concept because my company does use an MVVM framework, albeit custom fabbed. I have also learned a long time ago to learn more than one way to accomplish your goals, this provides you the ability to adapt and overcome when required. The second issue is more a personal one. I hate it when I have trouble solving something!! You Gerry, In ways I agree but I (being still an amateurs amateur, there is little I can do with changing the mind of the person who has spent the past 4 years developing, maintaining and upgrading the companies SW.

    WPF help csharp wpf tutorial discussion

  • Passing Data From a window to the mainview(shellViewModel) using EventAggregator - WPF Caliburn.Micro
    D Dwayne Barsotta

    What I am describing is using work situations to learn. There is a chance I will be asked to work with our development/IT department on our in house application because I have been a hobby programmer and have more than 20 years experience in the companies primary focus industry. If I get offered a position in the development team, I'll jump all over it. Other than that, not sure what your post is getting at.

    WPF help csharp wpf tutorial discussion

  • Dividing a TextBox into columns
    D Dwayne Barsotta

    Seems I got downvoted for something here, not sure what. I completed the initial usable version of this application. Per the comments, I received here I redesigned the GUI and operating concepts of the program. Keep in mind this was my first - fully installable C#-WPF-MVVM application ever (second C#). When I got to a (mostly operational) point I had one small bug, I had our company programmer guy look at my program and direct me on my bug (i did have it right, just put the function call in the wrong place). The main idea behind my program was to load a cvs file containing repair order numbers and warranty values, the user can select a min warranty value and the number of records wanted, click a button and the number of random records will be displayed. I was able to include several other (convienence) features as well. I figured - since I got a lot of help here and I really like this site I would share the first version, I have made the GitHub repo public. Hopefully, it will help some others as well as offer me some constructive criticism. BTW - I am being invited to help our code team at work on our in-house projects, this was brought on by him viewing the code for this project, ultimately from the help for y'all. I have always loved coding as a hobby and even took 2 years of online Computer Science, but at 41 years old I resigned myself to the idea I will not become a professional developer, well it looks like that is changing (at least ina small way). This is my long-winded Thank You to all who help! The link to me GitHub Project is below! [Link to my GitHub Project done with your help!]

    WPF wpf csharp algorithms regex architecture

  • Dividing a TextBox into columns
    D Dwayne Barsotta

    I took your last comment to heart. After a discussion with him he finally understood, I informed him he needed to break his data down into more manageable chunks.

    WPF wpf csharp algorithms regex architecture

  • Passing Data From a window to the mainview(shellViewModel) using EventAggregator - WPF Caliburn.Micro
    D Dwayne Barsotta

    I have been up almost all night reading on this subject. I have my main ViewModel (ShellViewModel), when the user selects a button a new window opens for the user to type something and a file chooser to select the file to read. All I want to do is pass the Text typed in and the file path (as a string) back to the main view model for processing. I believe I understand the concept of using EventAggregator to pass an event containing the data I want from the second window to the first. My problem is all the examples are showing the main VM creating two separate VM and the data is passed between the two individual VM's. My ShellViewModel has the following method when the button is selected (I know using WindowManager in this fashion is not "best practice", but works for now:

    public void LoadSchedule()
    {
    WindowManager windowManager = new WindowManager();
    SelSchedViewModel vm = new SelSchedViewModel();
    windowManager.ShowDialog(vm);
    }

    I have added a Handle to the ShellViewModel as well as Implimented "IHandle" Handle Code in ShellViewModel:

    public void Handle(ScheduleInfo message)
    {
    ScheduleName = message.ScheduleName;
    FileInfo = message.FileLocation;
    }

    I have created the class "SheduleInfo" to hold the data for the event

    public class ScheduleInfo
    {
    public string ScheduleName
    {
    get;
    private set;
    }

        public string FileLocation
        {
            get;
            private set;
        }
    
        public ScheduleInfo(string SN, string FL)
        {
            ScheduleName = SN;
            FileLocation = FL;
        }
    }
    

    SheduleName and FileLocation have been added to ShellViewModel:

    public string ScheduleName
    {
    get { return _scheduleName; }
    set {
    _scheduleName = value;
    NotifyOfPropertyChange(() => ScheduleName);
    }
    }
    public string FileInfo
    {
    get { return _fileInfo; }
    set {
    _fileInfo = value;
    NotifyOfPropertyChange(() => FileInfo);
    }
    }

    The second window "SelSchedViewModel" has a load button that when text is written in the text box and a file has been selected, is supposed to pass that data back and close this windows. I am stuck on how to set up the SelShedViewModel

    WPF help csharp wpf tutorial discussion

  • Dividing a TextBox into columns
    D Dwayne Barsotta

    The 5k amount of data is not my request, it is that of my boss. Maybe if I explain the purpose of the application. I work for a large truck dealership group. My boss wants a small desktop app that will read a .cvs file of repair order data -> have a box where he can enter the number of repair orders (up to 5k, idk why so much) -> press a button -> a list is populated with the RO number (String) of randomly selected ROs from the CVS file. I am just trying to format some control to make three columns wide with vertical scroll bars if needed, each column will be a continuation of the last. I laid here thinking last night, I could have the code in the viewmodel divide the primary collection into 3 new collections and have those collections bind to a datagrid or multiple column listbox.

    WPF wpf csharp algorithms regex architecture

  • Dividing a TextBox into columns
    D Dwayne Barsotta

    I am creating an application to learn WPF and MVVM pattern. I have a BindableCollection in my ViewModel with anywhere from 1 to 5000 strings values. I want to put a ListBox or other control in my View that is bound to this Collection. I want the TextBox to be divided into 3 columns and if the data goes further then the three columns can handle, scroll bars are created. I have been searching for hours and can not find a method that is working. Can you anyone direct me in a direction to get this working?

    WPF wpf csharp algorithms regex architecture
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups