示例#1
0
 void SetDirection(string t)
 {
     if (t == "LtR")
     {
         bNext.SetValue(Grid.ColumnProperty, 4);
         bPrevious.SetValue(Grid.ColumnProperty, 0);
         LeftPage.HorizontalAlignment  = HorizontalAlignment.Right;
         RightPage.HorizontalAlignment = HorizontalAlignment.Left;
         LeftPage.SetValue(Grid.ColumnProperty, 0);
         RightPage.SetValue(Grid.ColumnProperty, 1);
         cPageMini2.FlowDirection   = FlowDirection.LeftToRight;
         tbReadingDirection.Content = "Current : " + "Left to Right";
     }
     else if (t == "RtL")
     {
         bNext.SetValue(Grid.ColumnProperty, 0);
         bPrevious.SetValue(Grid.ColumnProperty, 4);
         LeftPage.HorizontalAlignment  = HorizontalAlignment.Left;
         RightPage.HorizontalAlignment = HorizontalAlignment.Right;
         LeftPage.SetValue(Grid.ColumnProperty, 1);
         RightPage.SetValue(Grid.ColumnProperty, 0);
         cPageMini2.FlowDirection   = FlowDirection.RightToLeft;
         tbReadingDirection.Content = "Current : " + "Right to Left";
     }
 }
示例#2
0
 public LoggedInPage()
 {
     Password         = "";
     Items            = new ObservableCollection <INotifyPropertyChanged>();
     this.DataContext = Items;
     InitializeComponent();
     RightPage.Navigate(new DirectoryPage());
 }
示例#3
0
 public RightPageVM(RightPage plugin)
 {
     SqlString = Common.SetConfig("SqlString");
     DbList    = new List <Key_Value>();
     DbList.Add(new Key_Value {
         label = "SqlServer", value = 0
     });
     DbList.Add(new Key_Value {
         label = "MySql", value = 1
     });
     DbList.Add(new Key_Value {
         label = "Oracle", value = 3
     });
     FilterDb    = DbList[0];
     Item        = new ObservableCollection <string>();
     this.plugin = plugin;
     SourceUrl   = Common.SetConfig("SourceUrl");
     AimUrl      = Common.SetConfig("AimUrl");
 }