public MainWindow() { InitializeComponent(); command = new MainWindowCommand(); DataContext = command; }
/// <summary> /// Initialization of the package; this method is called right after the package is sited, so this is the place /// where you can put all the initialization code that rely on services provided by VisualStudio. /// </summary> protected override void Initialize() { IVsActivityLog log = GetService(typeof(SVsActivityLog)) as IVsActivityLog; log.LogEntry(3, "Octane", "Started Octane plugin"); MainWindowCommand.Initialize(this); base.Initialize(); OctaneCommand.Initialize(this); var optionsPage = (ConnectionSettings)GetDialogPage(typeof(ConnectionSettings)); optionsPage.LoadSettingsFromStorage(); optionsPage.setOldCredentials(); }
public MainWindowViewModel() { _mainWindowCommand = new MainWindowCommand(this); }
private void OnClientSuccesLogin(object sender, ClientEventArgs e) { MainWindowCommand.Execute(null); }