private void CancelClick(object sender, RoutedEventArgs e)
        {
            NewIndustryContractControl.Cancel();
            AcceptIndustryContractControl.Cancel();

            ShowMainView();
        }
        private void CreateClick(object sender, RoutedEventArgs e)
        {
            if (NewIndustryContractControl.Create())
            {
                ShowMainView();

                AvailableContractsCollectionView.Refresh();
                AcceptedContractsCollectionView.Refresh();
            }
        }
        internal void CreateNewContract(EoiBlueprint e)
        {
            ShowCreateContractView();

            NewIndustryContractControl.SetBlueprint(e);
        }
        private void CreateContractClick(object sender, RoutedEventArgs e)
        {
            ShowCreateContractView();

            NewIndustryContractControl.SetBlueprint(null);
        }
Example #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CreateNewContractButton = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\..\..\UserInterface\Industry\ContractsControl.xaml"
                this.CreateNewContractButton.Click += new System.Windows.RoutedEventHandler(this.CreateContractClick);

            #line default
            #line hidden
                return;

            case 2:
                this.CreateButton = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\..\..\UserInterface\Industry\ContractsControl.xaml"
                this.CreateButton.Click += new System.Windows.RoutedEventHandler(this.CreateClick);

            #line default
            #line hidden
                return;

            case 3:
                this.AcceptButton = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\..\..\UserInterface\Industry\ContractsControl.xaml"
                this.AcceptButton.Click += new System.Windows.RoutedEventHandler(this.AcceptClick);

            #line default
            #line hidden
                return;

            case 4:
                this.CancelButton = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\..\..\UserInterface\Industry\ContractsControl.xaml"
                this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelClick);

            #line default
            #line hidden
                return;

            case 5:
                this.NewIndustryContractGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 6:
                this.NewIndustryContractControl = ((EveOnlineTool.UserInterface.Industry.NewIndustryContractControl)(target));
                return;

            case 7:
                this.AcceptIndustryContractGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 8:
                this.AcceptIndustryContractControl = ((EveOnlineTool.UserInterface.Industry.AcceptIndustryContractControl)(target));
                return;

            case 9:
                this.AvailableContractsGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 10:
                this.AvailableContractsDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 11:
                this.AcceptedContractsGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 12:
                this.AcceptedContractsDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }