Exemplo n.º 1
0
        //add new deadline
        private void AddBtn_Click(object sender, RoutedEventArgs e)
        {
            DdlSettingWindow dsw = new DdlSettingWindow();

            if ((bool)dsw.ShowDialog())
            {
                ReloadDdlStackPanel();
                ShowSnackbar("Deadline添加成功");
            }
        }
Exemplo n.º 2
0
        private void SettingDdlBtn_Click(object sender, RoutedEventArgs e)
        {
            Grid.BackgroundProperty.ToString();
            DdlSettingWindow dsw = new DdlSettingWindow(ddl.Id);

            if ((bool)dsw.ShowDialog())
            {
                ReloadSingleDdlWithAnimation();

                if (FlowWindowOperation.flowWindows.Exists(d => d.ddl.Id == ddl.Id))
                {
                    FlowWindowOperation.flowWindows.Find(d => d.ddl.Id == ddl.Id).DdlNameTextBlock.Text = ddl.Name;
                }
                DdlPage.self.ShowSnackbar(ddl.Name + " 更改成功");
            }
        }