Beispiel #1
0
        private void SearchCBTN_Click(object sender, EventArgs e)
        {
            SearchCPB.Visible = true;
            AddCPB.Visible    = false;
            NewCPB.Visible    = false;

            cdd.Hide();
            newc.Hide();
            cr.MdiParent = this;
            cr.Text      = "";
            cr.Show();
            WelcomePanel.Hide();
        }
Beispiel #2
0
        private void InvoiceBTN_Click(object sender, EventArgs e)
        {
            InvoicePB.Visible = true;
            POPB.Visible      = false;
            GRNPB.Visible     = false;

            PO.Hide();
            grn.Hide();
            invoice.MdiParent = this;
            invoice.Text      = "";
            invoice.Show();
            WelcomePanel.Hide();
        }
Beispiel #3
0
        public MainPage()
        {
            this.InitializeComponent();

            // Set up the UI
            VisualStateManager.GoToState(this, "HideQuichSeachResults", false);

            // Set ourselves as the backend action listener
            App.BaconMan.SetBackendActionListener(this);

            // Set the title bar color
            ApplicationView.GetForCurrentView().TitleBar.BackgroundColor = Color.FromArgb(255, 51, 51, 51);
            ApplicationView.GetForCurrentView().TitleBar.ButtonBackgroundColor = Color.FromArgb(255, 51, 51, 51);
            ApplicationView.GetForCurrentView().TitleBar.InactiveBackgroundColor = Color.FromArgb(255, 51, 51, 51);
            ApplicationView.GetForCurrentView().TitleBar.ButtonInactiveBackgroundColor = Color.FromArgb(255, 51, 51, 51);
            ApplicationView.GetForCurrentView().TitleBar.ForegroundColor = Color.FromArgb(255, 255, 255, 255);
            ApplicationView.GetForCurrentView().TitleBar.InactiveForegroundColor = Color.FromArgb(255, 255, 255, 255);
            ApplicationView.GetForCurrentView().TitleBar.ButtonForegroundColor = Color.FromArgb(255, 255, 255, 255);
            ApplicationView.GetForCurrentView().TitleBar.ButtonInactiveForegroundColor = Color.FromArgb(255, 255, 255, 255);

            // Create the starting panel
            WelcomePanel panel = new WelcomePanel();

            // Create the panel manager
            m_panelManager = new PanelManager(this, (IPanel)panel);
            ui_contentRoot.Children.Add(m_panelManager);
            App.BaconMan.OnBackButton += BaconMan_OnBackButton;

            // Sub to callbacks
            App.BaconMan.SubredditMan.OnSubredditsUpdated += SubredditMan_OnSubredditUpdate;
            App.BaconMan.UserMan.OnUserUpdated            += UserMan_OnUserUpdated;

            // Sub to loaded
            Loaded += MainPage_Loaded;
            App.BaconMan.OnResuming += App_OnResuming;

            // Set the subreddit list
            ui_subredditList.ItemsSource = m_subreddits;

            // Setup the keyboard shortcut helper and sub.
            m_keyboardShortcutHepler = new KeyboardShortcutHelper();
            m_keyboardShortcutHepler.OnQuickSearchActivation += KeyboardShortcutHepler_OnQuickSearchActivation;
            m_keyboardShortcutHepler.OnGoBackActivation      += KeyboardShortcutHepler_OnGoBackActivation;

            m_panelManager.OnNavigationComplete += PanelManager_OnNavigationComplete;

            // Sub to the memory report
            App.BaconMan.MemoryMan.OnMemoryReport += MemoryMan_OnMemoryReport;
        }
Beispiel #4
0
        private void Home_Load(object sender, EventArgs e)
        {
            //  MessageBox.Show("Home Load");
            menustripAdmin.Hide();
            //  menustripCustomer.Hide();
            WelcomePanel.Hide();
            //panel1.Hide();
            //panel2.Hide();
            panel1.Show();
            panel2.Show();

            txtUserId.Text      = "";
            txtPassword.Text    = "";
            txtPhoneNumber.Text = "";
        }
Beispiel #5
0
        public PkLoginForm()
        {
            this.welcomePanel = new WelcomePanel();
            this.loginPanel = new LoginPanel();
            this.loginPanel.Hide();

            this.Controls.Add(this.welcomePanel);
            this.Controls.Add(this.loginPanel);

            this.ClientSize      = new Size(380, 380);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox     = false;
            this.ShowInTaskbar   = false;
            this.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "PageKite - Log in";
        }
Beispiel #6
0
        public PkLoginForm()
        {
            this.welcomePanel = new WelcomePanel();
            this.loginPanel   = new LoginPanel();
            this.loginPanel.Hide();

            this.Controls.Add(this.welcomePanel);
            this.Controls.Add(this.loginPanel);

            this.ClientSize      = new Size(380, 380);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox     = false;
            this.ShowInTaskbar   = false;
            this.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "PageKite - Log in";
        }
Beispiel #7
0
 public override void DoCommand()
 {
     NetStart.myInfo = DataDo.Json2Object <PersonalInfo>(Decode.DecodFirstContendBtye(bytes));
     //if (NetStart.myInfo.status == 1)//登录成功--进行主界面数据的获取--跳转界面
     {
         NetStart.isLogin = true;//登录标志(在线)
         SceneManager.LoadScene("Scenes/MainScence");
         UnityAction <Scene, LoadSceneMode> onLoaded = null;
         onLoaded = (Scene scene, LoadSceneMode mode) =>
         {
             MMunePanel.Open();
             WelcomePanel.Open();
             SceneManager.sceneLoaded -= onLoaded;
         };
         SceneManager.sceneLoaded += onLoaded;
     }
 }
Beispiel #8
0
 public WelcomeScreen()
 {
     InitializeComponent();
     WelcomePanel.Show();
     SigninPanel.Hide();
 }
Beispiel #9
0
 private void BackButton_Click(object sender, EventArgs e)
 {
     SigninPanel.Hide();
     WelcomePanel.Show();
 }
Beispiel #10
0
 private void NgoButton_Click(object sender, EventArgs e)
 {
     SigninPanel.Show();
     WelcomePanel.Hide();
     UserType = "Ngo";
 }
Beispiel #11
0
 private void ContributorButton_Click(object sender, EventArgs e)
 {
     WelcomePanel.Hide();
     SigninPanel.Show();
     UserType = "Contributor";
 }
 void WelcomeClick()
 {
     if (welcome == null)
     {
         Facade.Instance.ShowPanel <WelcomePanel>(Utility.UI.GetUIFullRelativePath("WelcomePanel")
                                                  , panel => { panel.gameObject.name = "WelcomePanel"; panel.gameObject.SetActive(true); welcome = panel; });
     }
     else
     {
         Facade.Instance.RemovePanel(Utility.UI.GetUIFullRelativePath("WelcomePanel"));
     }
 }
Beispiel #13
0
 private void metroButton3_Click(object sender, EventArgs e)
 {
     // Panel Show/Hide
     Student_panel.Hide();
     WelcomePanel.Hide();
 }
Beispiel #14
0
 private void metroButton4_Click(object sender, EventArgs e)
 {
     WelcomePanel.Hide();
     Student_panel.Hide();
 }
Beispiel #15
0
 private void pictureBox3_Click(object sender, EventArgs e)
 {
     // Panel Show/Hide
     WelcomePanel.Show();
     Student_panel.Hide();
 }